﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

using LuckyBingoRcon.Commands.Events;

namespace LuckyBingoRcon.Commands
{
	public class ExcludeMapsCommand : Command
	{
		public EventHandler<ExcludeMapsCommandEventArgs> OnResponse;

        public ExcludeMapsCommand(bool setValue)
        {
            if(setValue)
                base.commandText = "setadmindvar playlist_excludeMap ";
            else
                base.commandText = "playlist_excludeMap ";
            base.args = null;
        }

        protected override void CommandOnResponse(string response)
        {
            ExcludeMapsCommandEventArgs e = new ExcludeMapsCommandEventArgs();
            e.MapNames = response;
            OnResponse(this, e);
        }

        public override string ToString()
        {
            return "Set\tExclude Maps\t" + base.args.ToString();
        }
	}
}
